package com.tl.architecture.base.fragment

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.viewbinding.ViewBinding

/**
 * viewbinding fragment
 */
abstract class BaseVBFragment<VB : ViewBinding> : BaseFragment() {
   protected lateinit var binding: VB

    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        binding = getBinding()
        return super.onCreateView(inflater, container, savedInstanceState)
    }

    abstract fun getBinding(): VB
}